#!/bin/sh
#echo "Start configuring the environment..."
#echo "nameserver 202.115.160.33\nnameserver 8.8.8.8" >/etc/resolv.conf  #配置实验系统的域名服务器

echo "Start jupyter installing..."
pip3 install jupyter  #安装jupyter
if [ $? -eq 0 ]      #判断是否安装成功
then
	echo "\e[34m jupyter installation is successful! \e[0m"
else
	echo "\e[31m jupyter installation is failed! \e[0m"
fi

echo "Start bash_kernel installing..."
pip3 install bash_kernel   #安装bash_kernel
python3 -m bash_kernel.install 
if [ $? -eq 0 ]      #判断是否安装成功
then
	echo "\e[34m bash_kernel installation is successful! \e[0m"
else
	echo "\e[31m bash_kernel installation is failed! \e[0m"
fi

echo "Congratulations,Configuration environment complete!!!"
